/**
 * Created by baijian on 2017/6/8.
 */

layui.use(['upload','layer'], function(){
    var upload = layui.upload; //定义上传组件
    upload({
        url: ''
        ,before: function(input){
            //返回的参数item，即为当前的input DOM对象
            console.log('文件上传中');
        }
        ,success: function(res){
            console.log('上传完毕');
        }
    });
});

